<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../flights/layui/css/layui.css" media="all">
</head>

<body background="../../flights/img/q.jpg">

<div class="layui-tab ">
    <ul class="layui-tab-title layui-bg-cyan ">
        <li>查询航班</li>
        <li>查询订单</li>
        <li>修改密码</li>
        <li class="layui-col-md-offset8 layui-btn layui-btn-danger"><a href="out"> 安全退出</a></li>
    </ul>
    <div style="display: none;padding: 20px;background: #5FB878;width: 500px" id="saveOrUpdateDiv"  >
    <form class="layui-form layui-main" enctype="multipart/form-data" lay-filter="dataFrm"  action="/booking"  method="get"  id="dataFrm" style="width: 500px">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="loginName" lay-verify="title" autocomplete="off" placeholder="请输用户名" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="userName" lay-verify="title" autocomplete="off" placeholder="请输入姓名" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份证</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="userIdentity"   placeholder="请输入身份证" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">航班号</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="flights" autocomplete="off" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">出发时间</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="takeoffTime" autocomplete="off" class="layui-input"   readonly="true">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">出发地</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="startPlace" autocomplete="off" class="layui-input"   readonly="true">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">目的地</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="endPlace" autocomplete="off" class="layui-input"  readonly="true">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">飞行时间</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="flyingTime" autocomplete="off" class="layui-input"  readonly="true">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">票价</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="price" autocomplete="off" class="layui-input"   >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block" style="width: 300px">
                <button type="submit" class="layui-btn" lay-filter="demo1" id="submits"><span><i class="layui-icon">&#x1005;</i>确认订票</span></button>
                <button type="reset" class="layui-btn layui-btn-primary layui-btn  layui-btn-warm"><span><i class="layui-icon">&#xe669;</i>重置</span></button>
            </div>
        </div>
    </form>
    </div>

    <div class="layui-tab-content ">
        <!-- 查询航班  -->
        <div class="layui-tab-item layui-show">
          <div class=" layui-col-md-offset2" style="margin-top: 30px">
            <div class="demoTable">
                出发地：
                <div class="layui-inline">
                    <input class="layui-input" name="start_place" id="demoReload1" autocomplete="off">
                </div>
                目的地：
                <div class="layui-inline">
                    <input class="layui-input" name="end_place" id="demoReload2" autocomplete="off">
                </div>
                出发时间
                <div class="layui-inline">
                        <input  class="layui-input" name="takeoff_time" id="demoReload3"  placeholder="yyyy-MM-dd">
                </div>
                <button class="layui-btn" data-type="reload">搜索</button>
            </div>
                 <table class="layui-table"  lay-filter="demo1"  id="demo1"></table>
          </div>
        </div>

        <!-- 查询订单  -->
        <div class="layui-tab-item">
            <div class=" layui-col-md-offset1" style="margin-top: 20px">
                <table class="layui-hide" lay-filter="demo2" id="demo2"></table>
            </div>
        </div>

        <!-- 修改个人信息  -->
        <div class="layui-tab-item">
            <form class="layui-form layui-main" action="/updateadmin"  method="post"   style="width: 500px">
                <div class="layui-form-item">
                    <label class="layui-form-label">原密码</label>
                    <div class="layui-input-block" style="width: 300px">
                        <input type="text" name="loginName" lay-verify="title" autocomplete="off" placeholder="请输入原密码" class="layui-input" >
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">新密码</label>
                    <div class="layui-input-block" style="width: 300px">
                        <input type="text" name="loginPassword" lay-verify="title" autocomplete="off" placeholder="请输入新密码" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">新密码</label>
                    <div class="layui-input-block" style="width: 300px">
                        <input type="text" name="userName"   placeholder="再次确认新密码" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block" style="width: 300px">
                        <button type="submit" class="layui-btn" lay-filter="demo1"><span><i class="layui-icon">&#x1005;</i>确认</span></button>
                        <button type="reset" class="layui-btn layui-btn-primary layui-btn  layui-btn-warm"><span><i class="layui-icon">&#xe669;</i>重置</span></button>
                    </div>
                </div>
            </form>


        </div>




    </div>
  </div>
</div>

<script src="../../flights/layui/layui.js"></script>

<script type="text/html" id="barDemo1">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">订票</a>
</script>


<script type="text/html" id="barDemo2">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">退票</a>
</script>

<script src="../../flights/js/user.js">
</script>
  </body>
</html>